package cn.song.common;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 公共接口
 *
 * @author SongRenShuo
 * @date 2024/07/20
 */
@Api(value = "公共接口")
@Slf4j
@Validated
@RestController
@RequestMapping("/common")
public class CommonController {


    /**
     * 回调接收测试返回True
     */
    @RequestMapping("testReturnTrue")
    public boolean testReturnTrue(HttpServletRequest request) {

        log.info("回调接收测试返回True,ip:{}", "getIpAddr(request)");
        return true;
    }


}
